<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Checkbox 复选框</title>
    <script src="js/my_vue2.6.js"></script>
    <link rel="stylesheet" href="element-ui/lib/theme-chalk/index.css">
    <script src="element-ui/lib/index.js"></script>
</head>
<body>
<div id="div">
    <el-checkbox v-model="option1" disabled>
        选项一
    </el-checkbox>
    <el-checkbox v-model="option2">
        选项二
    </el-checkbox>
</div>

<div id="div2">
    <el-checkbox-group v-model="checkboxList">
        <el-checkbox label="复选框一"></el-checkbox>
        <el-checkbox label="复选框二"></el-checkbox>
        <el-checkbox label="复选框三" disabled></el-checkbox>
    </el-checkbox-group>
</div>
</body>
<script>
    new Vue({
        el:"#div",
        data:{
            option1:true,
            option2:false
        }
    })

    new Vue({
        el:"#div2",
        data:{
            checkboxList:["复选框一","复选框二","复选框三"]
        }
    })
</script>
</html>